<template>
    <div>
        <van-datetime-picker
            v-model="currentDate"
            type="date"
            title="选择年月日"
            :min-date="minDate"
            :max-date="maxDate"
        />



    </div>
</template>

<script>

    export default {
        data:{
            return:{
                setup() {
                    const currentDate = ref(new Date(2021, 0, 17));
                    return {
                    minDate: new Date(2020, 0, 1),
                    maxDate: new Date(2025, 10, 1),
                    currentDate,
                    };
                },
            }
        },


    };


</script>

<style >


</style>